#ifndef CLIENT_H
#define CLIENT_H

#include <QObject>
#include <QTcpSocket>
#include <QHostAddress>

class Client : public QTcpSocket
{
    Q_OBJECT
public:
    Client(QObject * parent = 0);

signals:
    void updateClientUI(QString, int);

protected slots:
    void slotConnectServer(QString, QString, QString);
    void slotSendServer(QString);
    void slotDisconnectServer();
    void slotConnected();

    void dataRecive();

private:
    QString userName;
    QHostAddress * serverIP;
    int serverPort;
};

#endif // CLIENT_H
